package com.chixing.day17_reflect_thread.thread;

import java.util.Scanner;

public class NumberTest {
    public static void main(String[] args) throws InterruptedException {
        Thread b = new Thread(new BThread(),"偶数线程...");
        Thread a = new Thread(new AThread(b),"奇数线程,,,");

        a.start();
        b.start();

        System.out.println("主线程优先级"+Thread.currentThread().getPriority());
        System.out.println("a 优先级"+a.getPriority());
        System.out.println("b 优先级"+b.getPriority());

        a.setPriority(Thread.MAX_PRIORITY);//优先级
        a.setPriority(Thread.MIN_PRIORITY);

       /* for (int i=100;i<=150;i++){
            System.out.println("main线程***"+i);
            Thread.sleep(2);
        }*/
    }
}
